package com.promise.jokerdream.config.game

import kotlinx.serialization.Serializable

/**
 * 武林盟主赛场类型
 */
@Serializable
enum class WlmzGroundType {
    GOLD,    // 黄金赛场 (ground_id = 1)
    SILVER,  // 白银赛场 (ground_id = 2)
    BRONZE   // 青铜赛场 (ground_id = 3)
}

@Serializable
data class WlmzGameConfig(
    override val enabledSetting: Boolean = false,
    override val scheduledChallengeEnabled: Boolean = false,
    override val registrationTime: String = "",
    val groundType: WlmzGroundType = WlmzGroundType.GOLD,
): BaseGameConfig {
    
    /**
     * 获取赛场ID
     * @return 赛场ID，1为黄金、2为白银、3为青铜
     */
    fun getGroundId(): Int {
        return when (groundType) {
            WlmzGroundType.GOLD -> 1
            WlmzGroundType.SILVER -> 2
            WlmzGroundType.BRONZE -> 3
        }
    }
}
